#!/bin/bash
account='1094385369@qq.com'
to='2671644962@qq.com'
subject='WARNING'
content='Warning server was stopped.'

# 使用echo将邮件内容传递给msmtp
echo "From: $account
To: $to
Subject: $subject

$content" | msmtp -a default -t